﻿/***************************************************************
 * 开发人员：网魂小兵@http://www.mozlite.com
 * 
 * 目标标本：4.0.30319.239
 * 
 * 最后修改：2011/12/16 22:01:11
 * ************************************************************/
namespace Mozlite.Web.UI.Areas.UCenter
{
    using System;
    using System.Linq;
    using System.Text;
    using Mozlite.Common;
    using System.Collections.Generic;
    using System.Web.Routing;
    using System.Web.Mvc;

    /// <summary>
    /// 用户中心区域注册。
    /// </summary>
    public class UCenterUrls : BaseUCenterAreaRegistration
    {
        /// <summary>
        /// 初始化类<see cref="T:Mozlite.Web.UI.UCenterUrls"/>。
        /// </summary>
        public UCenterUrls() { }

        /// <summary>
        /// 注册区域路由。
        /// </summary>
        /// <param name="context">区域注册上下文实例对象。</param>
        public override void RegisterArea(System.Web.Mvc.AreaRegistrationContext context)
        {
            //注册数据库
            context.BeginRegister();
            //文件上传列表
            context.Register(Dialog_UploadFile, "filestorages/uploadfile", new { controller = "dialog", action = "uploadview" }, null, null, true);
            //文件列表
            context.Register(Dialog_FileManager, "filestorages/filemanager", new { controller = "dialog", action = "filemanager" }, null, null, true);

            //窗口
            context.RegisterControllerAction("dialog", "folderview", ApplicationType.Common, true, null, null, true);
            context.RegisterControllerAction("dialog", "updatefolderview", ApplicationType.Common, true, null, null, true);
            context.RegisterControllerAction("dialog", "movefolderview", ApplicationType.Common, true, null, null, true);
            context.RegisterControllerAction("dialog", "updatefileview", ApplicationType.Common, true, null, null, true);
            context.RegisterControllerAction("dialog", "diskview", ApplicationType.Common, true, null, null, true);
            context.RegisterControllerAction("dialog", "movefileview", ApplicationType.Common, true, null, null, true);
            context.RegisterControllerAction("dialog", "imageview", ApplicationType.Common, true, null, null, true);

            //默认
            context.RegisterControllerAction("home", "diskview", ApplicationType.UCenter, false);
            context.RegisterControllerAction("home", "changepasswordview", ApplicationType.UCenter, false);
            context.RegisterControllerAction("home", "questionanswerview", ApplicationType.UCenter, false);
            //注册首页
            context.EndRegister();
        }

        /// <summary>
        /// 上传文件。
        /// </summary>
        private const string Dialog_UploadFile = "dialog_uploadfile";
        /// <summary>
        /// 浏览文件。
        /// </summary>
        private const string Dialog_FileManager = "dialog_filemanager";
        /// <summary>
        /// 文件夹。
        /// </summary>
        private const string Dialog_FolderView = "dialog_folderview";
        /// <summary>
        /// 更新文件夹。
        /// </summary>
        private const string Dialog_UpdateFolderView = "dialog_updatefolderview";
        /// <summary>
        /// 移动文件夹。
        /// </summary>
        private const string Dialog_MoveFolderView = "dialog_movefolderview";
        /// <summary>
        /// 更新文件。
        /// </summary>
        private const string Dialog_UpdateFileView = "dialog_updatefileview";
        /// <summary>
        /// 用户文件列表。
        /// </summary>
        private const string Dialog_DiskView = "dialog_diskview";
        /// <summary>
        /// 移动文件。
        /// </summary>
        private const string Dialog_MoveFileView = "dialog_movefileview";
        /// <summary>
        /// 图片浏览。
        /// </summary>
        private const string Dialog_ImageView = "dialog_imageview";
        /// <summary>
        /// 文件浏览。
        /// </summary>
        private const string Home_DiskView = "home_diskview";
        /// <summary>
        /// 修改密码。
        /// </summary>
        private const string Home_ChangePasswordView = "home_changepasswordview";
        /// <summary>
        /// 修改密码问题和答案。
        /// </summary>
        private const string Home_QuestionAnswerView = "home_questionanswerview";

        /// <summary>
        /// 上传文件。
        /// </summary>
        public static string DialogUploadFile { get { return FormatUrl(Dialog_UploadFile); } }

        /// <summary>
        /// 浏览文件。
        /// </summary>
        public static string DialogFileManager { get { return FormatUrl(Dialog_FileManager); } }

        /// <summary>
        /// 文件夹。
        /// </summary>
        public static string DialogFolderView { get { return FormatUrl(Dialog_FolderView); } }

        /// <summary>
        /// 更新文件夹。
        /// </summary>
        public static string DialogUpdateFolderView { get { return FormatUrl(Dialog_UpdateFolderView); } }

        /// <summary>
        /// 移动文件夹。
        /// </summary>
        public static string DialogMoveFolderView { get { return FormatUrl(Dialog_MoveFolderView); } }

        /// <summary>
        /// 更新文件。
        /// </summary>
        public static string DialogUpdateFileView { get { return FormatUrl(Dialog_UpdateFileView); } }

        /// <summary>
        /// 用户文件列表。
        /// </summary>
        public static string DialogDiskView { get { return FormatUrl(Dialog_DiskView); } }

        /// <summary>
        /// 移动文件。
        /// </summary>
        public static string DialogMoveFileView { get { return FormatUrl(Dialog_MoveFileView); } }

        /// <summary>
        /// 图片浏览。
        /// </summary>
        public static string DialogImageView { get { return FormatUrl(Dialog_ImageView); } }

        /// <summary>
        /// 文件浏览。
        /// </summary>
        public static string HomeDiskView { get { return FormatUrl(Home_DiskView); } }

        /// <summary>
        /// 修改密码。
        /// </summary>
        public static string HomeChangePasswordView { get { return FormatUrl(Home_ChangePasswordView); } }

        /// <summary>
        /// 修改密码问题和答案。
        /// </summary>
        public static string HomeQuestionAnswerView { get { return FormatUrl(Home_QuestionAnswerView); } }
    }
}